const fruits = ["apple", "banana", "cantaloupe", "blueberries", "grapefruit"];

const index = fruits.findIndex(fruit => fruit === "blueberries");

//console.log(index); // 3

let arr = [1,2,3]
let pos = arr.findIndex(function(item,index,arr){
  console.log(item)
  if(item > 1) return item

});

let a = arr.some(function(item,index,arr){
  return item > 1
})

console.log('a',a)
